home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / JFC.bin / OrganicTheme.java < prev    next >
Text File  |  1998-06-30  |  5KB  |  100 lines

  1. /*
  2.  * @(#)OrganicTheme.java    1.2 98/01/30
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  */
  20.  
  21. package com.sun.java.swing.plaf.organic;
  22.  
  23. import com.sun.java.swing.plaf.*;
  24. import com.sun.java.swing.*;
  25.  
  26. /**
  27.  * This interface acts as a generic way to describe the colors
  28.  * used by Organic.  Classes which implement this interface can
  29.  * be used to swap the colors in a Organic application.
  30.  *
  31.  * @version 1.2 01/30/98
  32.  * @author Steve Wilson
  33.  */
  34.  
  35. public abstract class OrganicTheme {
  36.  
  37.     public abstract ColorUIResource getControl1();  // these are khaki in Organic default L&F
  38.     public abstract ColorUIResource getControl2();
  39.     public abstract ColorUIResource getControl3();
  40.     public abstract ColorUIResource getControl4();
  41.  
  42.     public abstract ColorUIResource getHighlight1();  // these are green in Organic default L&F
  43.     public abstract ColorUIResource getHighlight2();
  44.     public abstract ColorUIResource getHighlight3();
  45.     public abstract ColorUIResource getHighlight4();
  46.  
  47.     public abstract ColorUIResource getDarkAccent1();  // these are purple in Organic default L&F
  48.     public abstract ColorUIResource getDarkAccent2();
  49.     public abstract ColorUIResource getDarkAccent3();
  50.     public abstract ColorUIResource getDarkAccent4();
  51.  
  52.     public abstract ColorUIResource getLightAccent1();  // these are orange in Organic default L&F
  53.     public abstract ColorUIResource getLightAccent2();
  54.     public abstract ColorUIResource getLightAccent3();
  55.     public abstract ColorUIResource getLightAccent4();
  56.  
  57.     public abstract ColorUIResource getWhite();
  58.     public abstract ColorUIResource getBlack();
  59.  
  60.     public abstract ColorUIResource getDesktopColor();
  61.  
  62.     public abstract String getName();
  63.  
  64.     public abstract FontUIResource getControlTextFont();
  65.     public abstract FontUIResource getUserTextFont();
  66.     public abstract FontUIResource getMenuTextFont();
  67.     public abstract FontUIResource getEmphasisTextFont();
  68.  
  69.     public ColorUIResource getFocusColor() { return getHighlight4(); }
  70.  
  71.     public ColorUIResource getSystemTextColor() { return getHighlight4(); }
  72.     public ColorUIResource getControlTextColor() { return getBlack(); }  
  73.     public ColorUIResource getInactiveSystemTextColor() { return getControl2(); }
  74.     public ColorUIResource getUserTextColor() { return getBlack(); }
  75.     public ColorUIResource getTextHighlightColor() { return getHighlight4(); }
  76.     public ColorUIResource getHighlightedTextColor() { return getLightAccent1(); }
  77.  
  78.     public ColorUIResource getWindowBackground() { return getLightAccent1(); }
  79.     public ColorUIResource getWindowTitleBackground() { return getControl2(); }  
  80.     public ColorUIResource getWindowTitleInactiveBackground() { return getControl1(); }
  81.     public ColorUIResource getWindowTitleForeground() { return getBlack(); }
  82.     public ColorUIResource getWindowTitleInactiveForeground() { return getBlack(); }
  83.     public ColorUIResource getPaletteTitleBackground() { return getHighlight3(); }
  84.     public ColorUIResource getPaletteTitleForeground() { return getLightAccent1(); }
  85.     public ColorUIResource getWindowFrameTop() { return getLightAccent4(); }   
  86.     public ColorUIResource getWindowFrameBottom() { return getControl3(); }   
  87.     public ColorUIResource getWindowFrameRight() { return getDarkAccent4(); }   
  88.     public ColorUIResource getWindowFrameLeft() { return getHighlight4(); }   
  89.     public ColorUIResource getWindowFrameInactive() { return getControl2(); }   
  90.  
  91.     public ColorUIResource getMenuBackground() { return getControl1(); }
  92.     public ColorUIResource getMenuForeground() { return  getHighlight4(); }
  93.     public ColorUIResource getMenuSelectedBackground() { return getLightAccent1(); }
  94.     public ColorUIResource getMenuSelectedForeground() { return getBlack(); }
  95.     public ColorUIResource getMenuItemForeground() { return  getBlack(); }
  96.     public ColorUIResource getMenuItemSelectedForeground() { return  getSystemTextColor(); }
  97.  
  98.     public void addCustomEntriesToTable(UIDefaults table) {}
  99. }
  100.